package org.pz.constant;

import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.access.SecurityConfig;
import sun.security.util.SecurityConstants;

import java.util.Collection;
import java.util.Collections;

public class MallSecurityConstants {

    /**
     * 授权相关
     */

    //所有权限
    public static final Collection<ConfigAttribute> PERMISSION_ALL = Collections.unmodifiableCollection(SecurityConfig.createList(SecurityConstants.ALL_PERMISSION.getName()));

    //啥权限没有
    public static final Collection<ConfigAttribute> PERMISSION_NO = Collections.unmodifiableCollection(SecurityConfig.createList("permission_no"));

    //用户相关
    public static final String ANONYMOUS = "anonymousUser";
}
